import { runCommand } from ".";

export default {
    canUndo: true,
    execute: (context, options, isUndo) => {
        runCommand(context, options, isUndo, (sheet, options) => {
            const { selections, size } = options;
            selections.forEach(range => {
                for (let index = 0; index < range.rowCount; index++) {
                    sheet.setRowHeight(range.row + index, size);
                }
            })
        })
    }
};